﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpObjects.PathMapping
{
    public static class PathMapperFactory
    {
        public static IPathMapper PathMapper { get; set; }

        static PathMapperFactory()
        {
            InitPathMapper();
        }

        private static void InitPathMapper()
        {
            if (DefaultPathMapper.IsWebApplication)
            {
                PathMapper = new WebServicePathMapper();
            }
            else
            {
                PathMapper = new DefaultPathMapper();
            }
        }
    }
}
